package com.firepongo.chaos.app.page;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.firepongo.chaos.app.DTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.BeanUtils;

import java.util.List;
import java.util.stream.Collectors;


@Data
@NoArgsConstructor
@ApiModel(value = "彩虹分页列表结果对象", description = "")
public class RainBowPageList<T> extends PageList {
    @ApiModelProperty(value = "上一条")
    private T top;
    @ApiModelProperty(value = "吓一跳")
    private T down;

    public RainBowPageList(IPage<T> page, Class c, T top, T down) {
        super(page, c);
        this.top = top;
        this.down = down;
    }

    public RainBowPageList(IPage<T> page, T top, T down) {
        super(page);
        this.top = top;
        this.down = down;
    }


}
